package io.finer.erp.jeecg.sale.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 销售订单行
 * </p>
 *
 * @author yaoyifan
 * @since 2021-05-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SaleOrderLine对象", description="销售订单行")
public class SaleOrderLine implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "主表")
    private String mid;

    @ApiModelProperty(value = "仓库")
    private String warehouseId;

    @ApiModelProperty(value = "批号")
    private String batchNo;

    @ApiModelProperty(value = "物料")
    private String materialId;

    @ApiModelProperty(value = "计量单位")
    private String unitId;

    @ApiModelProperty(value = "库存数量")
    private BigDecimal availableQty;

    @ApiModelProperty(value = "数量")
    private BigDecimal qty;

    @ApiModelProperty(value = "单价")
    private BigDecimal price;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "版本号")
    private Integer version;


}
